import 'inner_acctpay_entity.dart';

class InnerAcctPayFirstEntity {
  String canUseing;
  InnerAcctPayEntity fuliAcct;
  InnerAcctPayEntity tgfAcct;
  InnerAcctPayEntity reBuyAcct;
  InnerAcctPayEntity zfbAcct;
  //代理券
  InnerAcctPayEntity dlqAcct;
  //代金券
  InnerAcctPayEntity djqAcct;

  //津贴
  InnerAcctPayEntity jinTieAcct;

  InnerAcctPayFirstEntity(
      {this.canUseing, this.dlqAcct, this.jinTieAcct, this.fuliAcct, this.tgfAcct, this.reBuyAcct, this.zfbAcct});

  InnerAcctPayFirstEntity.fromJson(Map<String, dynamic> json) {
    canUseing = json['canUseing'];
    fuliAcct = json['fuliAcct'] != null ? new InnerAcctPayEntity.fromJson(json['fuliAcct']) : null;
    tgfAcct = json['tgfAcct'] != null ? new InnerAcctPayEntity.fromJson(json['tgfAcct']) : null;
    reBuyAcct = json['reBuyAcct'] != null ? new InnerAcctPayEntity.fromJson(json['reBuyAcct']) : null;
    zfbAcct = json['zfbAcct'] != null ? new InnerAcctPayEntity.fromJson(json['zfbAcct']) : null;
    dlqAcct = json['dlqAcct'] != null ? new InnerAcctPayEntity.fromJson(json['dlqAcct']) : null;
    djqAcct = json['djqAcct'] != null ? new InnerAcctPayEntity.fromJson(json['djqAcct']) : null;

    jinTieAcct = json['jinTieAcct'] != null ? new InnerAcctPayEntity.fromJson(json['jinTieAcct']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['canUseing'] = this.canUseing;
    if (this.fuliAcct != null) {
      data['fuliAcct'] = this.fuliAcct.toJson();
    }
    if (this.tgfAcct != null) {
      data['tgfAcct'] = this.tgfAcct.toJson();
    }
    if (this.reBuyAcct != null) {
      data['reBuyAcct'] = this.reBuyAcct.toJson();
    }
    if (this.zfbAcct != null) {
      data['zfbAcct'] = this.zfbAcct.toJson();
    }
    if (this.dlqAcct != null) {
      data['dlqAcct'] = this.dlqAcct.toJson();
    }
    if (this.djqAcct != null) {
      data['djqAcct'] = this.djqAcct.toJson();
    }
    if (this.jinTieAcct != null) {
      data['jinTieAcct'] = this.jinTieAcct.toJson();
    }
    return data;
  }
}
